<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <com :lists='list'></com>
  </div>
  <template id="tmp">
      <div>
          <h3 v-for='(item,index) in lists'> {{item}}</h3>
      </div>
  </template>
  <script src="./vue.js"></script>
  <script>
      Vue.component('com',{
          props:['lists'],

          data() {
              return {}
          },
          template: '#tmp'
      })

    var vm = new Vue({
      el:'#app',
      data:{
          list:[1,2,3,4,5]
      },
      methods:{
      },
     });
  </script>
</body>
</html>
